<template>
	<view style="padding: 30rpx 20rpx;">
		<view v-if="isStatus" class="">
			<view  class="row">
				<image src="/static/index/WeChat.png" mode=""></image>
				<view class="column" style="margin-left: 30rpx;align-items: flex-start;justify-content: center;">
					<view class="">
						关注公众号免费领取环保袋
					</view>
					<view class="button" @click="authorizationMessage">
						去关注
					</view>
				</view>
			</view>
		</view>
		<view v-else class="" style="text-align: center;margin-top: 300rpx;">
			暂无任务
		</view>
		
		<weChatSubTask v-if="qcPlay&&qcPlay.isShow&&!qcPlay.dataValid" ref="task" showErrTip checkHasTask/>
	</view>
</template>

<script>
	
	import weChatSubTask from '@/components/task/weChatSubTask.vue'
	
	export default {
		components:{weChatSubTask},
		data() {
			return {
				qcPlay:""
			};
		},
		methods:{
			authorizationMessage(){
				this.$ref.task.authorizationMessage();
			}
		},
		onShow() {
			if(uni.getStorageSync("qcPlay")){
				this.qcPlay = uni.getStorageSync("qcPlay")
			}
		},
		onNavigationBarButtonTap(data) {
			uni.navigateTo({
				url:`/pages/common/common?weburl=${this.BASE_URL}`
			})
		}
	}
</script>

<style lang="scss">
	page{
		width: 100%;
		height: 100%;
	}
	
	.row{
		image{
			width: 160rpx;
			height: 160rpx;
		}
		.button{
			margin: 15rpx 0rpx;
			width: 200rpx;
			height: 60rpx;
			line-height: 60rpx;
			text-align: center;
			border-radius: 15rpx;
			font-size: 26rpx;
			border: solid 1rpx #07BB0A;
			color: #07BB0A;
		}
	}
	
	// .advertising {
	
	// 	justify-content: space-around;
	// 	align-items: center;
	// 	padding: 15rpx 0rpx;
	
	// 	image {
	// 		width: 130rpx;
	// 	}
	
	// 	.button {
	// 		padding: 15rpx 30rpx;
	// 		background-color: $index-bg-top;
	// 		border-radius: 35rpx;
	// 		font-size: 24rpx;
	// 		color: #FFFFFF;
	// 	}
	
	// 	.column {
	// 		width: 298rpx;
	// 		justify-content: flex-end;
	// 		height: 100rpx;
	// 	}
	// }
	
	.text-sm {
		font-size: 26rpx;
		color: #D72816;
		margin-top: 15rpx;
	}
	
	.text-lg {
		font-size: 34rpx;
	}
</style>
